// Copyright (c) 2023 Presto Labs Pte. Ltd.
// Author: tianqiang

#pragma once

#include "coin2/exchange/base/order/order.h"
#include "coin2/exchange/maicoin/api_order/native_private_client.h"

namespace coin2::exchange::maicoin::api_order {

class MaicoinRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestClient = MaicoinNativePrivateClient;
  using RestParams = coin2::exchange::order::MaicoinRestParams;

 public:
  using RestSubscriber::RestSubscriber;

  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }

  void QueryAccountBalance();
  void QueryOpenOrders();
  void QueryHistoryOrders(const std::string& native_symbol);
  void QueryFills();
  void SubscribeAsync() override;
};

}  // namespace coin2::exchange::maicoin::api_order
